#include "CharDisplay.h"
#include "StringDisplay.h"
#include <new>

int main ()
{
    /* different output format means derived class can dicide details */
    AbstractDisplay* cd = new CharDisplay("h");
    cd->display();

    AbstractDisplay* sd = new StringDisplay("hello world");
    sd->display();
}